package com.jiazhong.spring.ioc.work.work03;

public class School implements Introduce {

    private Printer printer;

    public School() {
    }

    public School(Printer printer) {
        this.printer = printer;
    }

    public void print(Introduce introduce) {
        printer.print(introduce.introduce());
    }

    @Override
    public String introduce() {
        return "我是学校宝鸡文理学院";
    }
}
